package ooday02;

public class AnimalTest {

    public static void main(String[] args) {

        Animal a1 = new Animal("动物1", 88, "黑");
        Dog d1 = new Dog("小白", 2, "白");
        Chick c1 = new Chick("鸽鸽", 2, "灰");
        Fish f1 = new Fish("王八", 500, "绿");

        a1.eat();
        a1.drink();
        a1.work();

        d1.eat();
        d1.drink();
        d1.work();

        c1.eat();
        c1.drink();
        c1.work();

        f1.eat();
        f1.drink();
        f1.work();

    }

}
